module.exports = (ctx, next) =>
    {origin} = ctx.headers
    if origin
        ctx.set('Access-Control-Allow-Origin', "*")
        # ctx.set('Access-Control-Allow-Credentials', true)
        # ctx.set('Access-Control-Allow-Origin', origin)
        # if ctx.request.method == 'OPTIONS'
            # header =
        ctx.set('Access-Control-Allow-Headers','Content-Type,I')
    await next()
